export enum ReputationType {
  NEW_STORE = '3-', // 新店
  BRAND = '1-', // 品牌
  PREFERRED = '2-' // 优选
}

export function reputationLabelOf(value?: string): string {
  if (value?.includes(ReputationType.NEW_STORE)) return '新店'
  if (value?.includes(ReputationType.BRAND)) return '品牌'
  if (value?.includes(ReputationType.PREFERRED)) return '优选'
  return ''
}

export function reputationColorOf(value?: string): string {
  if (value?.includes(ReputationType.NEW_STORE)) return '#2dc4b1'
  if (value?.includes(ReputationType.BRAND)) return '#ffa60b'
  if (value?.includes(ReputationType.PREFERRED)) return '#df9e1d'
  return ''
}
